# CMakeLists.txt 示例
cmake_minimum_required(VERSION 3.14)
project(trace_system_tests)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_BUILD_TYPE Debug)

find_package(GTest REQUIRED)
find_package(ppconsul REQUIRED)

file(GLOB SDK_SOURCES /home/ubuntu/services/trace_system/sdk/*.cpp)
file(GLOB SDK_HEADERS /home/ubuntu/services/trace_system/sdk/*.hpp)


add_executable(ServerManagerUnitTests
    /home/ubuntu/services/trace_system/mock/ServerManagerUnit.cpp
    ${SDK_HEADERS}
    ${SDK_SOURCES}
    # 添加其他依赖的源文件，如 ServiceManager.cpp, LoadBalance.cpp 等
)

target_link_libraries(ServerManagerUnitTests gtest gtest_main pthread ppconsul)